import yagmail
import time
def send_mail(files):
    youjian=yagmail.SMTP(user="166213731@qq.com",password="jsjqzhaulsgpcbaf",host="smtp.qq.com",encoding="utf-8")
    youjian.send(to="166213731@qq.com",subject="测试报告",contents="测试报告，请查收",attachments=files)
